package jmind.asteroidea.example;

/**
 * description:
 *
 * @author weibo.xie
 * @date:2022/9/14 上午11:43
 */
public class BizException extends RuntimeException {
    private String code;

    public BizException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public BizException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public String toString() {
        return this.code + ":" + this.getMessage();
    }
}